package com.zx.club.oss.service.impl;

import com.zx.club.oss.adapter.StorageServiceAdapter;
import com.zx.club.oss.config.OssProperties;
import com.zx.club.oss.service.FileService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * 文件服务
 * @author zx
 * @date 2025-03-20 09:09
 */
@Service
@Slf4j
public class FileServiceImpl implements FileService {

    @Resource
    private StorageServiceAdapter storageServiceAdapter;
    @Override
    public String upload(MultipartFile file) {
        return storageServiceAdapter.uploadFile(file);
    }
}
